package com.huawei.service.impl;

import com.huawei.dao.PictureMapper;
import com.huawei.entity.Picture;
import com.huawei.service.PictureService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * @ClassName PictureImpl
 * @Description TODO
 * @Author zhuxin
 * @Date 2021/11/30 21:35
 */
@Service
public class PictureImpl implements PictureService {

    @Resource
    PictureMapper pictureMapper;

    @Override
    public List<Picture> selectAll(Map<String, Object> map) {
        return pictureMapper.selectAll(map);
    }

    @Override
    public int count(Map<String, Object> map) {
        return pictureMapper.count(map);
    }

    @Override
    public int insert(Picture picture) {
        return pictureMapper.insert(picture);
    }

    @Override
    public int update(Picture picture) {
        return pictureMapper.update(picture);
    }

    @Override
    public int delete(int id) {
        return pictureMapper.delete(id);
    }

    @Override
    public Picture getId(int id) {
        return  pictureMapper.getId(id);
    }
}
